//
//  JHDemoViewController.swift
//  JHWeiBo
//
//  Created by qujiahong on 2019/3/28.
//  Copyright © 2019 iOS_July. All rights reserved.
//

import UIKit

class JHDemoViewController: JHBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.children.count ?? 0)个"
        
    }
    
    @objc func clickNext() {
        let vc = JHDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}

extension JHDemoViewController {
    override func setupUI() {
        super.setupUI()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(clickNext))
    }
}
